import java.util.Scanner;

public class alg9 {

	
	public static void main(String[] args) 
	{
		Scanner leia = new Scanner (System.in);
		
		int i, fib1, fib2, aux, soma = 0, soma_total = 0;
		
		fib1 = 0;
		fib2 = 1;
		System.out.println(fib1);
		System.out.println(fib2);
		
		for (i = 3; i <= 10; i++)
		{
			soma = fib1 + fib2;
			System.out.println(soma);
			
			aux = fib1;
			fib1 = fib2;
			fib2 = fib2 + aux;
			
		    soma_total = soma_total + soma;
		}
			
		System.out.println("Soma dos Termos: "+ soma_total);
			
		
		

	}

}
